package com.ruoyi.web.tdm.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.web.tdm.mapper.TdmJiZhunShouTiMapper;
import com.ruoyi.web.tdm.domain.TdmJiZhunShouTi;
import com.ruoyi.web.tdm.service.ITdmJiZhunShouTiService;

/**
 * ID-09 -23 基准受体Service业务层处理
 * 
 * @author ly
 * @date 2022-03-11
 */
@Service
public class TdmJiZhunShouTiServiceImpl implements ITdmJiZhunShouTiService 
{
    @Autowired
    private TdmJiZhunShouTiMapper tdmJiZhunShouTiMapper;

    /**
     * 查询ID-09 -23 基准受体
     * 
     * @param id ID-09 -23 基准受体主键
     * @return ID-09 -23 基准受体
     */
    @Override
    public TdmJiZhunShouTi selectTdmJiZhunShouTiById(Long id)
    {
        return tdmJiZhunShouTiMapper.selectTdmJiZhunShouTiById(id);
    }

    /**
     * 查询ID-09 -23 基准受体列表
     * 
     * @param tdmJiZhunShouTi ID-09 -23 基准受体
     * @return ID-09 -23 基准受体
     */
    @Override
    public List<TdmJiZhunShouTi> selectTdmJiZhunShouTiList(TdmJiZhunShouTi tdmJiZhunShouTi)
    {
        return tdmJiZhunShouTiMapper.selectTdmJiZhunShouTiList(tdmJiZhunShouTi);
    }

    /**
     * 新增ID-09 -23 基准受体
     * 
     * @param tdmJiZhunShouTi ID-09 -23 基准受体
     * @return 结果
     */
    @Override
    public int insertTdmJiZhunShouTi(TdmJiZhunShouTi tdmJiZhunShouTi)
    {
        tdmJiZhunShouTi.setCreateTime(DateUtils.getNowDate());
        return tdmJiZhunShouTiMapper.insertTdmJiZhunShouTi(tdmJiZhunShouTi);
    }

    /**
     * 修改ID-09 -23 基准受体
     * 
     * @param tdmJiZhunShouTi ID-09 -23 基准受体
     * @return 结果
     */
    @Override
    public int updateTdmJiZhunShouTi(TdmJiZhunShouTi tdmJiZhunShouTi)
    {
        tdmJiZhunShouTi.setUpdateTime(DateUtils.getNowDate());
        return tdmJiZhunShouTiMapper.updateTdmJiZhunShouTi(tdmJiZhunShouTi);
    }

    /**
     * 批量删除ID-09 -23 基准受体
     * 
     * @param ids 需要删除的ID-09 -23 基准受体主键
     * @return 结果
     */
    @Override
    public int deleteTdmJiZhunShouTiByIds(Long[] ids)
    {
        return tdmJiZhunShouTiMapper.deleteTdmJiZhunShouTiByIds(ids);
    }

    /**
     * 删除ID-09 -23 基准受体信息
     * 
     * @param id ID-09 -23 基准受体主键
     * @return 结果
     */
    @Override
    public int deleteTdmJiZhunShouTiById(Long id)
    {
        return tdmJiZhunShouTiMapper.deleteTdmJiZhunShouTiById(id);
    }
}
